// Ternary Search Tree Implementation for C# 
 

using System;

namespace Raxxla.DayBreak.Core.Collections
{
	/// <summary>
	/// Defines an event argument class that holds a <see cref="TstDictionaryEntry"/>.
	/// </summary>
	public class TstDictionaryEntryEventArgs<ValueType> : EventArgs
	{
        private TstDictionaryEntry<ValueType> entry;

        /// <summary>Create a <see cref="TstDictionaryEntry"/> event argument.</summary>
		/// <param name="entry">A <see cref="TstDictionaryEntry"/> entry to pass as argument.</param>
        public TstDictionaryEntryEventArgs( TstDictionaryEntry<ValueType> entry )
        {
			this.entry = entry;
		}

		/// <summary>Gets the <see cref="TstDictionaryEntry"/> entry.</summary>
		/// <value>The <see cref="TstDictionaryEntry"/> entry.</value>
        public TstDictionaryEntry<ValueType> Entry
        {
			get
			{
				return entry;
			}
		}
	}

	/// <summary>
	/// A <see cref="TstDictionaryEntry"/> event handler.
	/// </summary>
    public delegate void TstDictionaryEntryEventHandler<ValueType>(
        Object sender,
        TstDictionaryEntryEventArgs<ValueType> e );
}
